[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
stpcpy() Copy One String into Another
#include <string.h>
char *stpcpy(string1,string2);
char *string1; Destination string
const char *string2; Source string
stpcpy() copies the source string 'string2' into the destination
string, 'string1'. stpcpy() stops when it encounters the null
character in 'string2'.
Returns: A pointer to 'string1' plus the length of the source
string, 'string2'.
Notes: stpcpy() is the same as strcpy(), except that
strcpy() does not return the length of the source
string.
See Also:
strcpy()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson